package com.example.demo.service;

import com.example.demo.entity.UserInfo;
import com.example.demo.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author :蕉绿
 * @Date : 2023/2/25 0:17
 * @Version : V1.0
 * @Description :
 */
@Service
public class UserService {
    @Autowired
    private  UserMapper userMapper;
    public UserInfo getUserById(Integer id) {
        return userMapper.getUserById(id);
    }
}
